package com.bwie.bargain.service.impl;

import com.bwie.miaosha.common.utils.PageUtils;
import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.bwie.miaosha.common.utils.Query;

import com.bwie.bargain.dao.TakenotesDao;
import com.bwie.bargain.entity.TakenotesEntity;
import com.bwie.bargain.service.TakenotesService;


@Service("takenotesService")
public class TakenotesServiceImpl extends ServiceImpl<TakenotesDao, TakenotesEntity> implements TakenotesService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<TakenotesEntity> page = this.page(
                new Query<TakenotesEntity>().getPage(params),
                new QueryWrapper<TakenotesEntity>()
        );

        return new PageUtils(page);
    }

    @Override
    public TakenotesEntity findByHelpId(Long helpId) {
        return baseMapper.findByHelpId(helpId);
    }



}